<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>
<form action="${contextPath }/admin/pinpai/update.do" method="post" enctype="multipart/form-data">
<table width="100%">
	<tbody>
		<c:if test="${obj==null}">
			<tr>
				<td>品牌名称</td><td><input name="o.pinpaiName"/></td>
			</tr>
			<tr>
				<td>LOGO</td><td><input type="file" name="image"/></td>
			</tr>
			<tr>
				<td>品牌介绍</td><td><textarea id="content-box" name="o.introduction" rows="30" cols="80"></textarea></td>
			</tr>
		</c:if>
		<c:if test="${obj!=null}">
			<tr>
				<td>编号</td><td>${obj.id }<input type="hidden" name="o.id" value="${obj.id}"/></td>
			</tr>
			<tr>
				<td>品牌名称</td><td><input name="o.pinpaiName" value="${obj.pinpaiName}"/></td>
			</tr>
			<tr>
				<td>LOGO预览</td><td><img src="${contextPath }${obj.logo}"/>
				<input type="hidden" name="o.logo" value="${obj.logo }"/>
				</td>
			</tr>
			<tr>
				<td>LOGO上传</td><td><input type="file" name="image" /></td>
			</tr>
			<tr>
				<td>介绍</td><td><textarea id="content-box" name="o.introduction" rows="30" cols="80">${obj.introduction}</textarea></td>
			</tr>
		</c:if>
		<tr>
			<td><button type="submit">提交</button></td>
		</tr>		
	</tbody>
</table>
</form>
<script src="${contextPath}/kindeditor/kindeditor-min.js" type="text/javascript"></script>
<script type="text/javascript">
KE.show({
	id:"content-box"
});
</script>